import { useLocation } from "react-router-dom";

function usePathKey() {
  const location = useLocation();
  const pathKey = location.pathname;
  return pathKey;
}
export default usePathKey;
